//
//  WZGTool.swift
//  ZCJZ
//
//  Created by sujeking on 2019/8/23.
//  Copyright © 2019 jeking. All rights reserved.
//

import Foundation


func ColorFromHex(_ rgbValue: Int32) -> UIColor {
    return UIColor(red: CGFloat((CFloat(((rgbValue&0xFF0000)>>16)))/255.0), green: CGFloat((CFloat(((rgbValue&0xFF00)>>8)))/255.0), blue: CGFloat((CFloat((rgbValue&0xFF)))/255.0), alpha: 1.0)
}

func ScreenWidth() -> Double {
    return Double(UIScreen.main.bounds.width)
}

func AppMainColor() -> UIColor {
    return ColorFromHex(0xF9150F)
}
